import 'package:flutter/material.dart';
import 'package:flutter_modular/flutter_modular.dart';
// import 'package:flutter_triple/flutter_triple.dart';
import 'package:modular_interfaces/src/di/injector.dart';

// import 'search/domain/usecases/search_by_text.dart';
// import 'search/external/github/github_search_datasource.dart';
// import 'search/infra/repositories/search_repository_impl.dart';
import 'package:http/http.dart' as http;

import 'rount_page1.dart';
import 'rount_page2.dart';

class AppModule extends Module {
  @override
  ///模块化路线
  final List<ModularRoute> routes = [
    ///初始路线
    ChildRoute(Modular.initialRoute, child: (_, __) => RoutePage1()),
    ///详情页 arg传参 防护装置
    ChildRoute('/route_page2', child: (_, args) => RoutePage2(/*result: args.data*/),/* guards: [GuardT()]*/),
  ];
}



